<div>
    <div class="form">
        <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'id' => 'email-template-form',
            'enableAjaxValidation' => true,
                ));
        ?>
        <p class="note" style="border: 1px solid;padding: 14px;font-style: italic;">
            <span style="color: red">Please use the following shortcut including [ ] for
                dynamicly change the data . </span><br />          
            For Username of the user [username] <br />
            For Username of the user [password] <br />
            Update Class Information [updateclass]<br />
            Update Course Information [updatecourse]<br />
            Trainer name[trainer_name]<br />
            Order Details[order_details] <br />
            Followername user name[followername] <br />
            For Time[time]<br/>
            Coupon Code[coupon_code]<br/>
            For User can activate profile [activation_link] <br />
            For Query User Name[name],Email:[email],Message:[message]<br />
            For view Class Course Link [classCourseViewdetailsLink] <br />
            For view Class Course [classcoursename] <br />
            For RECOMMEND a mail from [from_user_name] <br />






        </p>
        <p class="note">
            <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
        </p>


        <?php echo $form->errorSummary($model); ?>

        <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'name'); ?>
            </div>
            <div class="rowControl"><?php echo $form->textField($model, 'name', array('maxlength' => 45, 'class' => 'input-xlarge')); ?>
                <?php echo $form->error($model, 'name'); ?>
            </div><!-- row -->
        </div>

        <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'subject'); ?>
            </div>
            <div class="rowControl"><?php echo $form->textField($model, 'subject', array('maxlength' => 45, 'class' => 'input-xlarge')); ?>
                <?php echo $form->error($model, 'subject'); ?>
            </div><!-- row -->
            <div class="row">      </div>

        </div>
        <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'body'); ?>
            </div>
            <div class="rowControl"  style="clear: both;margin-bottom: 10px;">
                <?php
                $this->widget('common.extensions.ckeditor.CKEditor', array(
                    'model' => $model,
                    'attribute' => 'body',
                    'id' => 'email_body',
                ));
                ?>				
                <?php echo $form->error($model, 'body'); ?>
            </div><!-- row -->
        </div>

        <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'template_id'); ?>
            </div>
            <div class="rowControl"><?php echo $form->dropDownList($model, 'template_id', GxHtml::listDataEx(Template::model()->findAllAttributes(null, true)), array('class' => 'selectbox')); ?>
                <?php echo $form->error($model, 'template_id'); ?>
            </div><!-- row -->
        </div>
        <div class="row">
            <div class="rowLabel"><?php echo $form->labelEx($model, 'status'); ?></div>
            <div class="rowControl"><?php echo $form->dropDownList($model, 'status', array("1" => "Active", "0" => "InActive"), array('class' => 'selectstatus')); ?>    
                <?php echo $form->error($model, 'status'); ?>
            </div><!-- row -->
        </div>


        <div class="row">
            <div class="rowLabel"><?php
                echo GxHtml::submitButton(Yii::t('app', 'Save'), array('class' => 'btn btn btn-primary'));
                $this->endWidget();
                ?></div>

        </div>
    </div></div>
<!-- form -->
